package com.zijie.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijie.goods.model.Goods;
import com.zijie.goods.model.search.GoodSearchBean;


import java.util.List;

public interface GoodService {
//    分页查询品牌
    Page<Goods> findAll(Page< Goods> page, GoodSearchBean gsb);
    Goods findById(Integer id);
    boolean save(Goods goods);
    boolean update(Goods goods);
    int deleteByIds(List<Integer> ids);

    Object deleteById(Integer id);
    //是否热门
    boolean updateHotStatus(Integer id, Integer newStatus);
    //是否下架
    boolean updatePublicStatus(Integer id, Integer isTakeDown);
}
